import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import gHot from './components/gHot.vue';
import zHeader from './components/zHeader.vue';
import hindex from './components/hindex.vue';
import hsous from './components/hsous.vue';
import C_recipt from './components/C_recipt.vue';



Vue.component("Crecipt",C_recipt);
Vue.component("hsous",hsous);
Vue.component("hindex",hindex);
Vue.component("zHeader",zHeader);
Vue.component("gHot",gHot);
//#引入和配置mint-ui组件库
//1:完整引入mint-ui组件库
import MintUI from "mint-ui"
//2:单独引入mint-ui样式文件
import "mint-ui/lib/style.css"
//3:将mint-ui对象注册vue实例中
Vue.use(MintUI) 

//#引入和配置element-ui
//1:完整引入element-ui组件库
// import ElementUI from 'element-ui'   
//引入element样式
// import 'element-ui/lib/theme-chalk/index.css'  
//实例化element
// Vue.use(ElementUI); 

//#引入Vant组件库

import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);



axios.defaults.baseURL="http://127.0.0.1:8080";
axios.defaults.withCredentials=true;

Vue.prototype.axios=axios;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
